package com.chuyu.jzwboa.activity.offciemobile;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.chuyu.jzwboa.R;
import com.chuyu.jzwboa.base.MVPBaseActivity;
import com.chuyu.jzwboa.presenter.offmobile.OffDocDisPresenter;
import com.chuyu.jzwboa.utils.sys.StatusBarUtils;
import com.chuyu.jzwboa.view.iview.offmobile.IOffDisposeView;
import com.facebook.drawee.view.SimpleDraweeView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @description 公文处理
 */
public class OffDocDisposeActivity extends MVPBaseActivity<IOffDisposeView,
        OffDocDisPresenter> implements IOffDisposeView {


    @BindView(R.id.titel_left_img)
    SimpleDraweeView titelLeftImg;
    @BindView(R.id.title_text)
    TextView titleText;
    @BindView(R.id.title_right_img)
    SimpleDraweeView titleRightImg;
    @BindView(R.id.titel_rl)
    RelativeLayout titelRl;
    @BindView(R.id.sdv_user)
    SimpleDraweeView sdvUser;
    @BindView(R.id.rb_agree)
    RadioButton rbAgree;
    @BindView(R.id.rb_disagree)
    RadioButton rbDisagree;
    @BindView(R.id.off_dispase_rg)
    RadioGroup offDispaseRg;

    @Override
    protected int initContent() {
        return R.layout.activity_off_doc_dispose;
    }

    @Override
    protected void initView() {
        titleText.setText("公文处理");
        /**
         * 动态设置状态栏高度
         */
        int statusHeight = StatusBarUtils.getStatusHeight(this);
        titelRl.setPadding(0, statusHeight, 0, 0);
        titelLeftImg.setVisibility(View.GONE);
        titleRightImg.setVisibility(View.VISIBLE);
        titleRightImg.setImageResource(R.mipmap.ic_launcher_round);

    }

    @Override
    protected void initData() {

    }

    @NonNull
    @Override
    public OffDocDisPresenter createPresenter() {
        return new OffDocDisPresenter();
    }



    @OnClick({R.id.titel_left_img, R.id.title_right_img})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.titel_left_img:
                finish();
                break;
            case R.id.title_right_img:
                break;
            default:
                break;
        }
    }
}
